package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.RefundRejectModel;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao on 2018.
 */

public class RefundRejectRequest {


    private RefundRejectRequest(Builder builder) {
        setRefundRejectModel(builder.refundRejectModel);
    }

    public static Builder newBuilder() {
        return new Builder();
    }


    String id;
    RefundRejectModel refundRejectModel;

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id == null ? "" : id;
    }

    public RefundRejectModel getRefundRejectModel() {
        return refundRejectModel;
    }

    public void setRefundRejectModel(RefundRejectModel refundRejectModel) {
        this.refundRejectModel = refundRejectModel;
    }


    public static final class Builder {
        private String id;
        private RefundRejectModel refundRejectModel;

        private Builder() {
        }


        public Call<ResponseBody> build() {
            return ApiManager.getService().reject(id, refundRejectModel);
        }

        public Builder id(String val) {
            id = val;
            return this;
        }

        public Builder refundRejectModel(RefundRejectModel val) {
            refundRejectModel = val;
            return this;
        }
    }
}
